import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// 增加@处理
import {resolve} from 'path'
const pathResolver = (dir) => resolve(__dirname,'.', dir);
// https://vitejs.dev/config/
export default defineConfig({
  base:'/content',
  publicPath: './',
  plugins: [vue()],
  // server:{
  //   host:'192.168.0.106',
  //   port:'8080',
  // },
  resolve: {
    alias: [{ find: "@", replacement: pathResolver("src") }],
    extensions : ['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json','.vue']
  }
})
